[IA64] Fix Xen crash when creating VTI domain
authorawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Tue, 23 Jan 2007 19:07:02 +0000 (12:07 -0700)
committerawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Tue, 23 Jan 2007 19:07:02 +0000 (12:07 -0700)
commitea5725a36c19cde5ba314199c130443aba6ac1f6
treece2c1ee13996962b40a1b3b0e0f49d58b4082390
parentaffb7d88442e871f1a8796fd4002f89b69f96e57
[IA64] Fix Xen crash when creating VTI domain

Xend will do a hypercall to destory domain when creating VTI guest fails.
If "is_vti" is not set at that point, HV will call relinquish_vcpu_resource(),
which is for non-VTI. It may try to free a NULL pointer, so dom0 crash.
This patch fix it.

Signed-off-by: Xu Anthony <Anthony.xu@intel.com>
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
xen/arch/ia64/xen/vhpt.c